# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hachoir-core
pkgver=1.3.3
pkgrel=4
pkgdesc='A library written in Python which allows to see and edit a binary files field per field.'
arch=('any')
url='http://bitbucket.org/haypo/hachoir/wiki/Home'
license=('GPL2')
depends=('python2')
makedepends=('python2-setuptools')
source=("http://cheeseshop.python.org/packages/source/h/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('71c24c4c4612ab544663ddde4aa07bb7514fcb3b86596ad67d6b48e0d8590b1a9d8c88ed4007c2341cb195ef825e06634bce14c62cc2c5200b6d745d341cac51')

build() {
  cd "$pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

